﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int my_strcmp(const char* dest, const char* src)
{
	while (*dest == *src)
	{
		if (*dest == '\0')
		{
			return 0;
		}
		dest++;
		src++;
	}
	return *dest - *src;

}
int main()
{
	char arr1[] = "abcd";
	char arr2[] = "abcde";
	printf("%d", my_strcmp(arr1, arr2));
	return 0;
}